<?php 
/* SVN FILE: $Id$ */
/* Editor Test cases generated on: 2009-12-14 01:09:11 : 1260749351*/
App::import('Model', 'Editor');

class EditorTestCase extends CakeTestCase {
	var $Editor = null;
	var $fixtures = array('app.editor');

	function startTest() {
		$this->Editor =& ClassRegistry::init('Editor');
	}

	function testEditorInstance() {
		$this->assertTrue(is_a($this->Editor, 'Editor'));
	}

	function testEditorFind() {
		$this->Editor->recursive = -1;
		$results = $this->Editor->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Editor' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>